package com.yanqu.road.entity.log;

import com.yanqu.road.utils.string.StringUtils;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class LogHellNpc {
    private int activityId;
    private long userId;
    private int no;
    private int npcId;
    private int qualityId;
    private int ageId;
    private String eventId;
    private long reward;
    private long time;

    public LogHellNpc(int activityId, long userId, int no, int npcId, int qualityId, int ageId, Map<Integer, List<String>> eventMap, long reward, long time) {
        List<String> allEventList = new ArrayList<>();
        for(List<String> eventList :eventMap.values()){
            allEventList.addAll(eventList);
        }
        this.activityId = activityId;
        this.userId = userId;
        this.no = no;
        this.npcId = npcId;
        this.qualityId = qualityId;
        this.ageId = ageId;
        this.eventId = StringUtils.listToString(allEventList,",");
        this.reward = reward;
        this.time = time;
    }

    public int getActivityId() {
        return activityId;
    }

    public long getUserId() {
        return userId;
    }

    public int getNo() {
        return no;
    }

    public int getNpcId() {
        return npcId;
    }

    public int getQualityId() {
        return qualityId;
    }

    public int getAgeId() {
        return ageId;
    }

    public String getEventId() {
        return eventId;
    }

    public long getReward() {
        return reward;
    }

    public long getTime() {
        return time;
    }
}
